package com.pig.controller;

import com.pig.pojo.log.Logs;
import com.pig.service.LogService;
import com.pig.util.SysResultLayui;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**系统访问记录（登录日志）*/
@RestController
public class LogController {
    @Autowired
    private LogService logService;
    /**
     * 分页查询日志信息
     */
    @RequestMapping("/log/findLogsByPage")
    public SysResultLayui<Logs> findItemByPage(int page, int limit){
        return logService.findPageObjects(page,limit);
    }
    /**日志管理数据添加实现*/
//    @RequestMapping("/log/insertUserLogs")
//    public
}
